﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mogubang_Sl.Entity
{
    public class MoguData
    {
        /// <summary>
        /// 
        /// </summary>
        public MoguType Type { get; set; }

        /// <summary>
        /// 等级
        /// </summary>
        public int Level { get; set; }

        /// <summary>
        /// ET的方向 0-Left 1-Right 2-Top 3-Bottom
        /// </summary>
        public int ET_Side { get; set; }

        public MoguData(MoguType type, int level, int etSide)
        {
            Type = type;
            Level = level;
            ET_Side = etSide;
        }

        public MoguData()
        { }

        internal void TurnETSide()
        {
            int temp = ET_Side;
            switch (temp)
            {
                case 0:
                    ET_Side = 2;
                    break;
                case 1:
                    ET_Side = 3;
                    break;
                case 2:
                    ET_Side = 1;
                    break;
                case 3:
                    ET_Side = 0;
                    break;
            }
        }
    }

    public enum MoguType
    {
        Empty, BlueMogu, OrangeMogu, NewLife, ET, Null
    }
}
